-- GENERATED SPELL FOR [Bog Lurker] --


function spell0_18682(pUnit, Event) --@Fungal Regrowth,n/a--
pUnit:FullCastSpellOnTarget(34163,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18682', 23000, 1)
end

function spell1_18682(pUnit, Event) --@War Stomp,n/a--
pUnit:FullCastSpellOnTarget(35238,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18682', 635, 1)
end

function Sorts_18682(pUnit, Event)
local choix_sorts_18682 = math.random(0, 1)
if choix_sorts_18682 == 0 then
pUnit:RegisterEvent('spell0_18682', 1, 1)
end
if choix_sorts_18682 == 1 then
pUnit:RegisterEvent('spell1_18682', 1, 1)
end
end

function mob18682_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18682', math.random(1500, 3000), 1)
end

function mob18682_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18682_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18682_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18682, 1, 'mob18682_Action')
RegisterUnitEvent(18682, 2, 'mob18682_Leave')
RegisterUnitEvent(18682, 3, 'mob18682_Kill')
RegisterUnitEvent(18682, 4, 'mob18682_Die')
